package com.situ.mall.service.impl;

import com.situ.mall.mapper.OrderMapper;
import com.situ.mall.pojo.vo.OrderProductCountVO;
import com.situ.mall.service.IOrderService;
import com.situ.mall.util.JSONResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class OrderServiceImpl implements IOrderService {
    @Autowired
    private OrderMapper orderMapper;

    @Override
    public JSONResult selectOrderProductCount() {
        List<OrderProductCountVO> list = orderMapper.selectOrderProductCount();
        return JSONResult.ok(list);
    }
}
